package pay

import (
	"github.com/iGoogle-ink/gopay/qq"
)


type QQPay struct {
	MchId          string
	ApiKey         string
	CertFilePath   string
	KeyFilePath    string
	Pkcs12FilePath string
}

func NewQQ(c *QQPay) (client *qq.Client) {
	client = qq.NewClient(c.MchId, c.ApiKey)
	// todo: 设置证书
	//err := client.AddCertFilePath(c.CertFilePath, c.KeyFilePath, c.Pkcs12FilePath)
	//if err != nil {
	//	panic(err)
	//}
	return client
}
